{% set ii = 1 %}
{% for postinfo in post_infos %}
<li class="list-group-item list-group-hover" {% if ii % 2 !=0 %} style="background-color: #eee" {% end %}>
    {% set ii = ii + 1 %}
    <div class="row">
        {% if postinfo.logo != '' %}
        <div class="col-sm-3">
            <a href="/info/{{ postinfo.uid }}">
                <img src="{{ postinfo.logo }}" class="img-thumbnail">
            </a>
        </div>
        <div class="col-sm-9">
        {% else %}
        <div class="col-sm-12">
        {% end %}
        <div class="listinfo_title">
            <strong><a href="/info/{{ postinfo.uid }}">
                {{ postinfo.title }}
            </a></strong>

            {% if userinfo and( userinfo.role[1] >= '2' or userinfo.user_name == postinfo.user_name) %}
            <a href="/info/_edit/{{ postinfo.uid }}" class="btn btn-xs btn-primary">修改</a>
            {% end %}
        </div>
        <div class="listinfo_content padt10">
            {% module generate_abstract(postinfo.cnt_html)[:120] %}...
        </div>
        <div class="listinfo_extra">
            {% module post_labels(postinfo = postinfo) %}
        </div>
        </div>
    </div>
</li>
{% end %}




